package com.woniuxy.woniuhis.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseInfo {
	// 状态码
	private int state;
	// 成功时返回的数据
	private Object data;
	// 失败时返回的错误消息
	private String msg;
	
	public ResponseInfo(int state, Object data) {
		super();
		this.state = state;
		this.data = data;
	}

	public ResponseInfo(int state, String msg) {
		super();
		this.state = state;
		this.msg = msg;
	}
	
	
}
